package cn.scw.project.separate.mapper;

import cn.scw.project.separate.domain.SaRecord;
import cn.scw.project.separate.domain.SeparateVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SaRecordMapper {

    void insert(SaRecord record);

    void update(SaRecord record);

    void delete(@Param("id") Long id);

    List<SaRecord> list(Map<String, Object> params);

    void updateOrderState(@Param("state") Integer state, @Param("orderId") String orderId);

    List<SeparateVo> queryUserRecord(@Param("orderId") Long orderId);
    //查询分账成功记录
    List<SeparateVo> querySeparateSuccRecord(@Param("orderId") Long orderId);
}
